package dao

import (
	"time"
)

// 这是 LiGoodsWords 的全局公开dao对象
var LiGoodsWordsDao = liGoodsWordsDao{}

// 这是 li_goods_words表 的实体类
type LiGoodsWords struct {
	Id         int       `json:"id" form:"id" v:"id"`
	CreateBy   string    `json:"create_by" form:"create_by" v:"create_by"`
	CreateTime time.Time `json:"create_time" form:"create_time" v:"create_time"`
	DeleteFlag bool      `json:"delete_flag" form:"delete_flag" v:"delete_flag" gm:"delete_flag"`
	UpdateBy   string    `json:"update_by" form:"update_by" v:"update_by"`
	UpdateTime time.Time `json:"update_time" form:"update_time" v:"update_time"`
	Abbreviate string    `json:"abbreviate" form:"abbreviate" v:"abbreviate"`
	Sort       int       `json:"sort" form:"sort" v:"sort"`
	Type       string    `json:"type" form:"type" v:"type"`
	WholeSpell string    `json:"whole_spell" form:"whole_spell" v:"whole_spell"`
	Words      string    `json:"words" form:"words" v:"words"`
}

// 注意:这是 LiGoodsWords 的私有dao对象
type liGoodsWordsDao struct {
	Insert func(arg LiGoodsWords) int          //插入一条记录
	Update func(arg LiGoodsWords) int          //更新一条记录
	Delete func(arg LiGoodsWords) int          //删除一条记录
	Select func(arg LiGoodsWords) LiGoodsWords //获取一条记录
}
